/**
 * Created by Administrator on 2017/7/4.
 */
var menu_clicked;
var owner_clicked;
var display = true;
var emoji_display = false;
window.onload = function (){
    var menu_list = document.getElementById('menu');
    var owner = document.getElementById('owner');
    menu_clicked = function () {
        if (menu_list.style.display == "block") {
            menu_list.style.display ="none";
        } else {
            menu_list.style.display = "block"
        }
    }

    owner_clicked = function() {
        display = !display;
        owner.style.height = display? "192px": "0px";
    };
    var right = document.getElementById("right");
    var left = document.getElementById("left");
    var all = document.getElementsByClassName("all-wrapper")[0];
    if(right) {

        right.onclick = function () {
            all.style.display = "block";
        }
        left.onclick = function () {
            all.style.display = "none";
        }
    }

    var emoji =document.getElementsByClassName('comm-bottom')[0];
    var comm =document.getElementsByClassName('comm-bottom-img')[0];
    console.log(comm)
    if(emoji) {
        comm.onclick=function () {
            console.log(emoji)
            emoji_display = !emoji_display;
            emoji.style.height = emoji_display? "350px": "102px";
        }
    }

}

